﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InstantMessenger.MessengerServices;
using InstantMessenger.Interaction;

namespace InstantMessenger.UserControls
{
    /// <summary>
    /// User control base
    /// Created by: Dinh Quoc Vuong
    /// Created date: Oct 11th 2011
    /// </summary>
    [System.ComponentModel.ToolboxItem(false)]
    public class UCBase : UserControl
    {
        #region Fields
        /// <summary>
        /// Current service
        /// </summary>
        protected MessengerServicesClient _currentService = null;
        /// <summary>
        /// Control changable
        /// </summary>
        protected IControlChangable _conrolChangable;
        #endregion

        #region Constructors
        public UCBase()
        {

        }

        /// <summary>
        /// Init with control changable
        /// </summary>
        /// <param name="controlChangable"></param>
        public UCBase(IControlChangable controlChangable, MessengerServicesClient service)
        {
            _conrolChangable = controlChangable;
            _currentService = service;
        }

        /// <summary>
        /// Constructor set service
        /// </summary>
        /// <param name="currentService"></param>
        public UCBase(MessengerServicesClient currentService)
        {
            _currentService = currentService;
        }
        #endregion
    }
}
